/* ===== شات الدراسية - التصميم الحديث ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&display=swap');



a {
    color: orange
}

body {
    background: #ededed;
    color: #333
}

button {
    background: 0 0;
    color: #fff
}

input,textarea,.post_input_container {
    background: #f6f6f6;
    border: 1px solid #e6e6e6!important
}

.setdef {
    color: #333
}

.bback {
    background: rgb(0,0,0,.05)
}

.bbackb {
    background: rgb(0,0,0,.05);
    border: 1px solid rgb(0,0,0,.08)
}

.bhover:hover,.bhoverr:hover {
    background: rgb(0,0,0,.05)
}

.bbackhover {
    background: rgb(0,0,0,.05)
}

.bbackhover:hover {
    background: rgb(0,0,0,.025)
}

.bbackhoverb {
    background: rgb(0,0,0,.05)
}

.bbackhoverb:hover {
    background: rgb(0,0,0,.025);
    border: 1px solid rgb(0,0,0,.08)
}

.blisting {
    border-bottom: 1px solid rgb(0,0,0,.08)
}

.blisting:hover {
    background: rgb(0,0,0,.05)
}

.blist {
    border-bottom: 1px solid rgb(0,0,0,.08)
}

.back_ptop {
    background: #292929;
    color: #fff
}

.bpmenu:hover {
    background: rgb(255,255,255,.1)
}

.bsub {
    background: rgb(0,0,0,.1)
}

.bsub:hover {
    background: rgb(0,0,0,.2)
}

.bmenu,.submenu {
    border-bottom: 1px solid rgb(0,0,0,.05)
}

.bmenu:hover,.submenu:hover {
    background: rgb(0,0,0,.05)
}

.bshadow,.page_element,.float_menu,.btnshadow,.pboxed {
    box-shadow: 0 1px 3px rgb(0,0,0,.2)
}

.bselected {
    background: rgb(0,0,0,.08)
}

.rselected {
    background: rgb(0,0,0,.08)
}

.pselected {
    color: #03add8
}

.cselected,.liked {
    background: rgb(0,0,0,.05)
}

.pag_btn {
    background: rgb(0,0,0,.05);
    color: #666
}

.pagselected,.pag_btn:hover {
    background: rgb(0,0,0,.1)
}

.gtag {
    background: #fff;
    border: 1px solid rgb(0,0,0,.08)
}

.bborder {
    border-bottom: 1px solid rgb(0,0,0,.08)
}

.tborder {
    border-top: 1px solid rgb(0,0,0,.08)
}

.lborder,.ppanel {
    border-left: 1px solid rgb(0,0,0,.08)
}

.rborder {
    border-right: 1px solid rgb(0,0,0,.08)
}

.fborder {
    border: 1px solid rgb(0,0,0,.08)
}

.float_top {
    border-bottom: 1px solid rgb(0,0,0,.08)
}

.float_ctop {
    border-bottom: 1px solid rgb(0,0,0,.08)
}

.bhead {
    background: #222;
    color: #fff
}
.bheadz {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    
    /* تدرج لوني ثابت وأنيق (أزرق ملكي هادئ) */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    border-bottom: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* إضافة نقش خفيف جداً (مثل الغيوم) بشكل ثابت دون ثقل */
.bheadz::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modal_top {
    background: #222;
    color: #fff
}

.pro_top {
    background: #222;
    color: #fff
}

.bfoot {
    background: #222;
    color: #fff
}

.foot {
    background: #222;
    color: #fff
}

.backglob {
    background: #fff
}

.back_chat {
    background: #f0f4fb
}

.back_priv {
    background: #f0f4fb
}

.back_panel {
    background: #fff
}

.back_menu {
    background: #fff
}

.back_pmenu {
    background: #292929;
    color: #fff
}

.back_box {
    background: #fff
}

.back_input {
    background: #fff;
    border-top: 1px solid rgba(37,99,235,0.1);
    box-shadow: 0 -2px 12px rgba(15,37,87,0.06)
}
.back_modal {
    background: #fff
}

.page_element {
    background: #fff
}

.back_quote {
    background: #eef2f9
}

.theme_color {
    color: #03add8
}

.default_color {
    color: #222
}

.error {
    color: red
}

.success {
    color: #74b20e
}

.warn {
    color: orange
}

/* ===== ألوان الأزرار ===== */
.theme_btn, .back_theme { background: linear-gradient(135deg, #2563eb, #1a3a7e); color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.default_btn, .back_default { background: linear-gradient(135deg, #0f2557, #1a3a7e); color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.defaultd_btn { background: #1e3a5f; color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.ok_btn { background: linear-gradient(135deg, #16a34a, #15803d); color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.warn_btn { background: linear-gradient(135deg, #f59e0b, #d97706); color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.delete_btn { background: linear-gradient(135deg, #dc2626, #b91c1c); color:#fff; font-family: 'Tajawal', 'Almarai', sans-serif; border-radius: 8px; }
.send_btn { color:#0f2557; font-family: 'Tajawal', 'Almarai', sans-serif; }
/* default username color */
.user { color:#333; }

/* chat system messsage text color */
.chat_system { color:#999; }

/* opacity for offline users in list */
.offline { opacity:0.5; }

/* menu icon */
.menui { color:#764cca; }
.subi { color:#5f38b2; }

/* wall reply background */
.reply_item { background:#f6f6f6; }

/* main post item option wall and news */
.main_post_item { color:rgb(0,0,0,0.5); }

/* input option background colors */
.input_item {color: #707070;border: solid 1px #dfdada;border-radius: 100px;}

/* private log bubble colors */
.target_private, .hunt_quote {color:#ffffff; background: linear-gradient(135deg, #4e0dc1, #7646e0); border-radius: 10px 0 10px 10px; }
.hunter_private, .targ_quote {color:#000000; background:#ededed; border-radius: 0 10px 10px; }

/* quote in chat background */
.cquote {
    background: rgba(37,99,235,0.04) !important;
    border: solid 1px rgba(37,99,235,0.18);
    width: 100%;
    line-height: 17px;
    border-right: solid 4px #2563eb;
    border-left: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    border-radius: 8px;
}
.cquote::before {
    font-family: "Font Awesome 6 Free"; /* Ø®Ø· Font Awesome */
    content: "\f10d"; /* ÙƒÙˆØ¯ Ø£ÙŠÙ‚ÙˆÙ†Ø© "Ø§Ù‚ØªØ¨Ø§Ø³" (fa-quote-left) */
    font-weight: 900; /* Ù„Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø§Øª Ø§Ù„ØµÙ„Ø¨Ø© (Solid) */
    position: absolute;
    left: 10px; /* Ø§Ù„Ù…Ø³Ø§ÙØ© Ù…Ù† Ø§Ù„ÙŠØ³Ø§Ø± */
    top: 50%; /* ØªÙˆØ³ÙŠØ· Ø¹Ù…ÙˆØ¯ÙŠ */
    transform: translateY(-50%);
    color: #e7d9ff; /* Ù„ÙˆÙ† Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø© */
    font-size: 20px; /* Ø­Ø¬Ù… Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø© */
}

.cqname { color:#1a3a7e; font-weight: 700; }
.cqmess { color:#475569; }

/* tab menu */
.tab_menu { background:#fff; box-shadow:0 1px 3px rgb(0,0,0,0.2); }
.tab_menu_item { }
.tab_selected { background:rgb(0,0,0,0.08); }

/* modal menu */
.modal_mback { background:rgb(0,0,0,0.04); }
.modal_mborder { border-bottom: 1px solid rgb(0,0,0,0.08); }
.modal_selected { background: rgb(255 255 255 / 8%); border: solid 2px #673ab7; }

/* back transparency background for modal box */
.modal_back { background-color:rgba(0,0,0,0.4); }

/* chat logs */
.log2 { background:rgb(0,0,0,0.028); }
.topic_log {color: #ffffff;border-radius: 10px;background: radial-gradient(circle at 10% 20%, rgba(93, 55, 175, 0.8) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 25%), linear-gradient(135deg, #5d37af 0%, #6e45c1 25%, #7f53d3 50%, #9061e5 75%, #a16ff7 100%);background-blend-mode: overlay;background-size: 200% 200%;margin-bottom: 10px;margin-top: 5px;}
.sys_log { }

/* upload progress */
.bprogress { background:#74b20e; color:#fff; }

/* notification colors */
.bnotify { background:red; color:#fff; }
.foot_notify, .head_notify {}

/* date colors */
.sub_date { color:#888; }
.sub_chat, .sub_priv { color:#ccc; }

/* secondary text color */
.sub_text, .list_mood { color:#888; }

/* profile likes */
.plikes { background-color:rgba(100,100,100,0.3); color:#fff; }

/* spinner color */
.bspin { color:rgb(0,0,0,0.3); }

/* special chat item */
.my_notice {color:#fff;background: #673AB7;font-weight: bold;}
.system_text { background:#ededed; color:#666; }

/* outside pages background */
.back_page { background:#222; color:#fff; }

/* video background color */
.post_video { background:rgb(0,0,0,1); }

/* slider */
.boom_slider .ui-widget-content { background: #ededed; }
.boom_slider .ui-state-default { background: #999 !important; }
.boom_slider .ui-state-active { background: #999 !important; }
.boom_slider .ui-slider-range { background:#ccc; }

/* select input color */
.selectboxit-list, .selectboxit-btn { background-color: #f6f6f6; color:#666;  border:1px solid #e6e6e6 !important; }
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor { background-color: #ededed; color:#666; }
.selectboxit-default-arrow { border-top: 4px solid #666; }
.selectboxit-btn.selectboxit-enabled:hover, .selectboxit-btn.selectboxit-enabled:focus, .selectboxit-btn.selectboxit-enabled:active { background:#f6f6f6; color:#666; }
.selectboxit-options { background:#fff; border:1px solid #ccc; }
.selectboxit-list .selectboxit-option-anchor { color:#666; }

/* header */
.head_option1 {
    display: table-cell;
    width: 45px;
    height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg,#00bcd4,#ff8100) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}

.head_option2 {
    display: table-cell;
    width: 45px;
	height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg,#ff7ba8,#e91e63) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}

.head_option3 {
    display: table-cell;
    width: 45px;
	height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg,#47dfff,#0094c1) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}

.head_option4 {
    display: table-cell;
    width: 45px;
	height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg, #ffd147, #ff8100) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}

.head_option5 {
    display: table-cell;
    width: 45px;
    height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg, #b8ff42, #4caf50) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}

.head_option6 {
    display: table-cell;
    width: 45px;
	height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg, #10ff1a, #00ad07) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
	
}


.head_option7 {
    display: table-cell;
    width: 45px;
    height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgb(255 255 255 / 0) linear-gradient(117deg, #fff0d0, #ff2e1f) repeat scroll 0 0;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
}


.head_option8 {
    display: table-cell;
    width: 45px;
    height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
    background: linear-gradient(330deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
}


.head_option9 {
    display: table-cell;
    width: 45px;
    height: 50px;
    vertical-align: middle;
    font-size: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: #15268296 1px 0 9px 0;
    font-family: 'Almarai', sans-serif;
    
rgb(255 255 255 / 0) linear-gradient(117deg,#ff7ba8,#e91e63)
    repeat scroll 0 CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
    background: rgb(255 255 255 / 0) linear-gradient(117deg, #ff7ba8, #e91e63) repeat scroll 0 0;
}


/* --- رسائل الآخرين (أبيض بظل وألوان متغيرة) --- */
.ch_logs .my_text {
    display: inline-block;
    min-width: 60px;
    max-width: 99%;
    padding: 2px 4px;
    overflow: visible;
    position: relative;
    left: 3px; /* الموقع الأصلي */
    margin-right: 1px;
    background-color: #FFF;
    color: #303030;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    border-radius: 15px 15px 15px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: dropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               glowPulse 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* --- رسائلي (تدرج أخضر/أزرق فاتح) --- */
.ch_logs.log2 .my_text {
    display: inline-block;
    min-width: 60px;
    max-width: 99%;
    padding: 2px 4px;
    overflow: visible;
    position: relative;
    left: 3px;
    margin-right: 1px;
    background: linear-gradient(135deg, #DCF8C6 0%, #A8E6CF 100%) !important;
    color: #2D5A27;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid #C2E0B0;
    border-radius: 15px 15px 4px 15px;
    box-shadow: 0 4px 12px rgba(168, 230, 207, 0.4);
    animation: dropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

/* --- ميزة الألوان المتغيرة تلقائياً لكل رسالة --- */
.ch_logs:nth-child(4n+1) .my_text { background-color: #fdfcf0; } 
.ch_logs:nth-child(4n+2) .my_text { background-color: #f0f7fd; } 
.ch_logs:nth-child(4n+3) .my_text { background-color: #fdf0f7; } 
.ch_logs:nth-child(4n+4) .my_text { background-color: #f0fdf4; } 

/* الحفاظ على تدرج رسائلي دائماً */
.ch_logs.log2 .my_text { background: linear-gradient(135deg, #DCF8C6 0%, #A8E6CF 100%) !important; }

/* إخفاء السهم كما في الكود الأصلي */
.ch_logs.log2 .my_text:after, .ch_logs .my_text:after { display: none !important; }
